package com.itfreer.gis.map.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;

/**
 * 内核字典
 */
@Component
public class KernelDic extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "d_kernel";
	}
	
	@Override
	protected List<DictionaryEntity> getDictionarys() {
		List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
		DictionaryEntity item = new DictionaryEntity();
		item.setId("mapboxgl");
		item.setCode("mapboxgl");
		item.setDisplay("mapboxgl");
		item.setOrder(1);
		list.add(item);

		item = new DictionaryEntity();
		item.setId("openlayers");
		item.setCode("openlayers");
		item.setDisplay("openlayers");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("leaflet");
		item.setCode("leaflet");
		item.setDisplay("leaflet");
		item.setOrder(3);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("cesium");
		item.setCode("cesium");
		item.setDisplay("cesium");
		item.setOrder(4);
		list.add(item);

		return list;
	}
}
